package com.im.app.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 客服组对象 serve_group
 *
 * @author ruoyi
 * @date 2023-06-10
 */
public class ServeGroup {
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 管理id */
    private Integer adminId;

    /** 用户ID */
    private String userId;

    /** 分组名 */
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /** $table.subTable.functionName信息 */
    private int userCount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAdminId(Integer adminId)
    {
        this.adminId = adminId;
    }

    public Integer getAdminId()
    {
        return adminId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public int getUserCount() {
        return userCount;
    }

    public void setUserCount(int userCount) {
        this.userCount = userCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("adminId", getAdminId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("userCount", getUserCount())
            .toString();
    }
}
